﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Dukou.Authentication.Domain;
using Dukou.Dao.Implement;

namespace Dukou.Authentication.Dao.Impl
{
    /// <summary>
    /// 
    /// </summary>
    public class UserDao : NHibernateDao<User, long>, IUserDao
    {
        public User FindByUserName(string userName)
        {
            return this.HibernateTemplate.Find<User>("from User u where u.UserName = ?", userName).FirstOrDefault();
        }
    }
}
